package com.ws;

import javax.jws.WebService;
import org.springframework.stereotype.Component;

@WebService(serviceName = "DemoService", targetNamespace = "http://example.com/", endpointInterface = "com.ws.DemoService")
@Component
public class DemoServiceImpl implements DemoService {
    @Override
    public String sayHello(String name) {
        return "Hello, " + name;
    }
}